<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ShowTree</title>
    <link rel="stylesheet" href="/Trees/LayUiBac/layui/css/layui.css" media="all">
</head>
<body>

<div class="layui-container">
    <div class="layui-row">
        <form class="layui-form" action="">

            <div class="layui-form-item">
                <label class="layui-form-label">地区名称</label>
                <div class="layui-input-block">
                    <input type="text" name="areaName" required lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">树林类型</label>
                <div class="layui-input-block">
                    <input type="text" name="tree" required lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">树木种类</label>
                <div class="layui-input-block">
                    <input type="text" name="treeType" required lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">土地类型</label>
                <div class="layui-input-block">
                    <select name="land" lay-verify="">
                        <option value="旱地" selected>旱地</option>
                        <option value="湿地">湿地</option>
                        <option value="盐碱地">盐碱地</option>
                        <option value="林地">林地</option>
                    </select>
                </div>
            </div>

        </form>

    </div>
</div>


<script src="/Trees/LayUiBac/layui/layui.js"></script>
<script>

    //Demo
    layui.use('form', function () {
        let form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function (data) {
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
</script>
</body>
</html>